package ls.ch03.demo.demo7;

import com.sun.istack.internal.logging.Logger;
import ls.ch03.demo.demo6.RealBuyer;



/**
 * @author ls
 * @Date 创建时间:2022/4/8 11:34
 * 描述:
 */

public class IntermediarySubclass extends RealBuyer {
    private Logger logger = Logger.getLogger(IntermediarySubclass.class);
    @Override
    public String havealook(){
        before();
        String feedback = super.havealook();
        after();
        return "看房记录:买家反馈“"+feedback+"”";
    }
    public void before(){
        System.out.println("前期准备。");
        System.out.println("查找放源。");
        System.out.println("和卖家沟通时间。");
    }
    public void after(){
        System.out.println("后期跟踪");
        System.out.println("和买家沟通意见。");
    }

    public static void main(String[] args) {
        RealBuyer buyer = new IntermediarySubclass();
        String result = buyer.havealook();
        System.out.println(result);
    }
}
